<%--
  Created by IntelliJ IDEA.
  User: 86187
  Date: 2021/10/21
  Time: 10:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>



<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>reg</title>
    <link href="/resource/css/bootstrap.css" rel="stylesheet">
    <script type="text/javascript" src="/resource/js/jquery-3.2.1.js"></script>

</head>
<body  >

<div class="text-center">
<h3>用户注册</h3>

 <form:form action="/reg" method="post" modelAttribute="user">
     用户名:<form:input path="username"/>
     <!--错误提示-->
     <form:errors path="username" cssClass="text-danger"></form:errors>
     <br>
     密码:<form:password path="password" ></form:password>
     <form:errors path="password" cssClass="text-danger"></form:errors>
     <br>
     性别:<form:radiobutton path="gender" value="BOY"/>男<form:radiobutton path="gender" value="GIRL"/>女
     <!--错误提示-->
     <form:errors path="gender" cssClass="text-danger"></form:errors>
     <br>
     生日:<form:input type="date" path="birth" ></form:input>
     <form:errors path="birth" cssClass="text-danger"></form:errors> <br>

     手机号:<form:input path="phone" ></form:input>
     <form:errors path="phone" cssClass="text-danger"></form:errors> <br>
     邮箱:<form:input path="email" ></form:input>
     <form:errors path="email" cssClass="text-danger"></form:errors>
     <br>
     <br>
    <button type="submit">注册</button>
     有账户去<a href="/login">登录</a>
 </form:form>

</div>
</body>
</html>
